package com.lovo.dimao.dao.joe;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.dimao.entity.joe.PurchaseBean;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IPurchaseDao extends BaseMapper<PurchaseBean> {

    @Select("select * from csc_purchase left join csc_purchase_detail on purchase_id = fk_purchase_id")
    @ResultMap("purchaseMap")
    public List<PurchaseBean> findAllIncludeDetail();
}
